//
//  CreateSales.m
//  SnackCourier
//
//  Created by qianfeng01 on 15/7/25.
//  Copyright (c) 2015年 qianfeng01. All rights reserved.
//

#import "CreateSales.h"
#import "YJBasicinformationController.h"
#import "YJMoreinformationController.h"
#import "YJSpecificationController.h"

@implementation CreateSales

+(YJImmediatelygrabController *)createVC:(NSInteger)id{
    NSMutableArray *controllers =[[NSMutableArray alloc] init];
    NSMutableArray *titles =[[NSMutableArray alloc] init];
    
    YJBasicinformationController *View1 =[[YJBasicinformationController alloc] init];
    NSString *title1 =@"基本信息";
    View1.urlStr =[NSString stringWithFormat:kImmediatelygrabUrl,(long)id];
    [controllers addObject:View1];
    [titles addObject:title1];
    
    YJMoreinformationController *View2 =[[YJMoreinformationController alloc] init];
    NSString *title2 =@"更多详情";
    View2.urlStr =[NSString stringWithFormat:kImmediatelygrabUrl,(long)id];
    [controllers addObject:View2];
    [titles addObject:title2];
    
    YJSpecificationController *View3 =[[YJSpecificationController alloc] init];
    NSString *title3 =@"规格参数";
    View3.urlStr =[NSString stringWithFormat:kImmediatelygrabUrl,(long)id];
    
    [controllers addObject:View3];
    [titles addObject:title3];
    
    YJImmediatelygrabController *controller =[[YJImmediatelygrabController alloc] initWithViewControllers:controllers andTheirTitles:titles];
    controller.pageAnimatable =YES;
    controller.menuItemWidth =kScreenSize.width/3.0;
    return controller;
}
@end
